package com.wanmait.translate.system.service;

import com.wanmait.translate.dto.ResultData;
import com.wanmait.translate.pojo.SystemDept;

import java.util.List;

public interface SystemDeptService {

    List<SystemDept> listSystemDept();

    SystemDept getByPrimaryKey(Integer id);

    SystemDept getSelfAndParentByPrimaryKey(Integer id);

    SystemDept getRootSystemDept();

    void save(SystemDept systemDept);

    void update(SystemDept systemDept);

    ResultData remove(Integer id);


    Object find(String deptName, Integer state);
}
